package com.my.autoassociate.config;

import io.gitee.mayan50.autoassociate.aop.AutoAssociateAop;
import io.gitee.mayan50.autoassociate.auto.AutoAssociate;
import io.gitee.mayan50.autoassociate.util.DBUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AutoAssociateConfig {

    @Bean
    public AutoAssociate autoAssociate() {
        return new AutoAssociate(new String[]{"com.my.autoassociate.entity"});
    }

    @Bean
    public DBUtils dbUtils() { return new DBUtils(); }

    @Bean
    public AutoAssociateAop autoAssociateAop() {
        return new AutoAssociateAop();
    }

}
